<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>词多多代理商平台</title>
    <include file="Index:header" />
    <!----自动提示的input引入文件开始---------->
    <link rel="stylesheet" href="__PUBLIC__/css/textext.core.css" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/css/textext.plugin.autocomplete.css" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/css/textext.plugin.prompt.css" type="text/css" />
    <script src="__PUBLIC__/js/textext.core.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/js/textext.plugin.autocomplete.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/js/textext.plugin.prompt.js" type="text/javascript" charset="utf-8"></script>
    <!----自动提示的input引入文件结束---------->
    <script type="text/javascript">
        $(function(){
            $(".help-side dl dd:eq(5)").addClass('cur');
            $("#top #topcon .nav li:eq(1)").addClass('cur');
        })
    </script>
    <script src="__PUBLIC__/js/main.js" type="text/javascript" charset="UTF-8"></script>

</head>
<body>
<include file="Index:top"/>
<div id="main">
    <include file="User:left"/>
    <div id="main_right" class="container">
        <div class="title">登录记录</div>
        <div id="seach" class="container p10 mt10">
            <table class="table">
                <tr>
                    <td width="60" style="padding-left: 30px;">用户名</td>
                    <td>
                        <input id="textarea" class="input" value="{$userName}" style=" border-radius:3px;"/>
                    </td>
                    <td style="padding-left: 150px;">起始日期</td>
                    <td style="padding-left: 10px;">
                        <input type="text"  id="stime"  class="input date" style="width:70px;" value="{$stime}" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>
                    </td>
                    <td style="padding-left: 10px;">截止日期</td>
                    <td style="padding-left: 10px;">
                        <input type="text"  id="etime"  class="input date" style="width:70px;" value="{$etime}" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>
                    </td>
                    <td style="padding-left: 20px;">
                        <input  type="button" class="button_s green" value="查询" onclick="query();" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="proxyinfo" class="container p10 mt10">
            <table class="table" width="100%">
                <tr style="border-bottom: 2px solid #eee;">
                    <th>用户名</th>
                    <th>ip</th>
                    <th>地址</th>
                    <th>登录时间</th>
                </tr>
                <tbody id="tbody">
                <volist name="list" id="vo">
                    <tr>
                        <td>{$vo['username']}</td>
                        <td>{$vo['ip']}</td>
                        <td>{$vo['address']}</td>
                        <td>{$vo['addtime']}</td>
                    </tr>
                </volist>
                </tbody>
            </table>
            <div class="mt10">
                <div class="page_list">
                    <div class="p_l">
                        {$pageshow}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="footer">
    Copyright © Cidodo.com 2013 ShanDong YiShang Technology Co.,Ltd
    <br/>
    鲁ICP备13010818号 山东易商科技版权所有
</div>
<script>
    function query(){
        userName=$("#textarea").val();
        stime=$("#stime").val();
        etime=$("#etime").val();
        if(userName==""){
            msgwarn("请填写用户名");
            return false;
        }
        if(stime!=""&&etime==""){
            msgwarn("请选择截止日期");
            return false;
        }
        if(etime!=""&&stime==""){
            msgwarn("请选择起始日期");
            return false;
        }
        window.location="__URL__/userloglist?userName="+userName+"&stime="+stime+"&etime="+etime;
    }
</script>
<script type="text/javascript">
    function hash(str, hashSize)
    {
        var result = 0;
        for(var i = 0; i < str.length; i++)
            result += str.charCodeAt(i) + 31 * result;
        return result % hashSize;
    }

    $('#textarea')
            .textext({
                plugins : 'autocomplete',
                autocomplete : {
                    dropdownMaxHeight : '200px',

                    render : function(suggestion)
                    {
                        var icons = 'exclamation feed house information lock'.split(/ /g),
                                icon  = icons[hash(suggestion, icons.length)];
                        return  suggestion
                    }
                }
            })
            .bind('getSuggestions', function(e, data)
            {
                var list = [{$names}],
                        textext = $(e.target).textext()[0],
                        query = (data ? data.query : '') || '';

                $(this).trigger(
                        'setSuggestions',
                        { result : textext.itemManager().filter(list, query) }
                );
            });
</script>
</body>
</html>